import { request } from "@/utils/http"

const api_name = "/admin/order/orderInfo"

export const statisticalData = (
  page: number,
  pageSize: number,
  data: object
): any => {
  return request({
    url: `${api_name}/${page}/${pageSize}`,
    method: "get",
    params: data,
  })
}

// 获取个别用户信息 GET /admin/user/show/{userId}
export const IndividualUser = (id: number) => {
  return request.get<any, any>(`/admin/user/show/${id}`)
}

export const PatientInformation = (id: number) => {
  return request.get<any, any>(`/admin/order/orderInfo/show/${id}`)
}
